import request from '@/config/axios'

export default {
  async operatePartyOrganization(type, data, params) {
    const methodObj = {
      create: 'post',
      list: 'post',
      update: 'put',
      delete: 'delete'
    }
    return await request[methodObj[type]]({
      url: `/countryside/party-organization/${type}`,
      data,
      params
    })
  }
}
